www.gusucode.com > matlab神经网络原理与实例精解 本书源文件 > 第6章 BP神经网络/code/example6_8.m
% example6_8.m x=-4:.1:4; y=logsig(x); % logsig函数 dy=dlogsig(x,y); % logsig函数的导数 subplot(211) plot(x,y); title('logsig') subplot(212); plot(x,dy); title('dlogsig')